package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by marco on 2017/7/11.
 */
@Entity
@Table(name = "mini_app_config")
@DynamicInsert
@DynamicUpdate
public class MiniAppConfig extends IDEntityMall {

    @Column(columnDefinition = "bigint comment '平台id'")
    private Long mallId;

    @Column(columnDefinition = "varchar(255) comment '小程序ID'")
    private String appId;

    @Column(columnDefinition = "varchar(255) comment '小程序密钥'")
    private String appSecret;

    @Column(columnDefinition = "varchar(255) comment '商户号'")
    private String mchId;

    @Column(columnDefinition = "varchar(255) comment '商户密钥'")
    private String mchSecret;

    @Column(columnDefinition = "varchar(255) comment '模板ID'")
    private String templateId;

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getMchSecret() {
        return mchSecret;
    }

    public void setMchSecret(String mchSecret) {
        this.mchSecret = mchSecret;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        return "MiniAppConfig{" +
                "mallId=" + mallId +
                ", appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", mchId='" + mchId + '\'' +
                ", mchSecret='" + mchSecret + '\'' +
                ", templateId='" + templateId + '\'' +
                '}';
    }
}
